All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.music.NoteRequest

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.std.music.NoteRequestInfo
                   |
                   +----quicktime.std.music.NoteRequest

public final class NoteRequest
extends NoteRequestInfo
implements Cloneable
Provides all the information required to initialise a NoteChannel. The constructors for a NoteRequest will correclty fill in the the default values for the typicalPolyphony field (1.0) and flags will be set to zero.


Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o NoteRequest()
Creates a NoteRequest instance with the default values.
 o NoteRequest(int, int)
Create a NoteRequest from the given gmNumber instrument and polyphony values.
 o NoteRequest(ToneDescription)
Create a NoteRequest from the given ToneDescription value.
 o NoteRequest(ToneDescription, int)
Create a NoteRequest from the given ToneDescription and polyphony values.

Method Index

 o clone()
Makes a copy of a NoteRequest object.
 o getToneDescription()
Returns a copy of the current contained ToneDescription
 o setToneDescription(ToneDescription)
Sets the ToneDescription.
 o toString()
Returns a string representation of this object

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o NoteRequest
 public NoteRequest()
Creates a NoteRequest instance with the default values. Polyphony is set to 1.

 o NoteRequest
 public NoteRequest(ToneDescription td)
Create a NoteRequest from the given ToneDescription value.

Parameters:
td - a ToneDescription that describes the tone characteristics of the NoteRequest
 o NoteRequest
 public NoteRequest(ToneDescription td,
                    int poly)
Create a NoteRequest from the given ToneDescription and polyphony values.

Parameters:
td - a ToneDescription that describes the tone characteristics of the NoteRequest.
poly - the most number of simulateous notes maybe played at the same time. This value is a suggestion to the music toolbox that is used to estimate the resources a NoteChannel will be required to utilise.
 o NoteRequest
 public NoteRequest(int gmNumber,
                    int poly) throws QTException
Create a NoteRequest from the given gmNumber instrument and polyphony values.

Parameters:
gmNumber - the general MIDI number of the requested instrument
poly - the most number of simulateous notes maybe played at the same time. This value is a suggestion to the music toolbox that is used to estimate the resources a NoteChannel will be required to utilise.

Methods

 o setToneDescription
 public void setToneDescription(ToneDescription desc)
Sets the ToneDescription.

 o getToneDescription
 public ToneDescription getToneDescription()
Returns a copy of the current contained ToneDescription

 o toString
 public String toString()
Returns a string representation of this object

Overrides:
toString in class NoteRequestInfo
 o clone
 public Object clone()
Makes a copy of a NoteRequest object.

Overrides:
clone in class NoteRequestInfo

All Packages  Class Hierarchy  This Package  Previous  Next  Index